<? header("content-Type: text/html; charset=UTF-8");
date_default_timezone_set("PRC");
?>

<?php
if( isset($_REQUEST['userid']))
	$user_id = $_REQUEST['userid'];
else
	$user_id = "";
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0056)http://58299e.com/member/memberCentre?module=bankSavings -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>会员中心-银行入账</title>
    

<script type="text/javascript">
 	var ctx="";
 	var offsettime = '-14400000';
 	var current = parseInt('1535649586755',10) || 0;
 	var MEMBER_DIR="ogmember";
 	var OG_MEMBER_DIR="ogmember";
 	
	 	
	function Toast(msg,duration){ // 消息提示框
	    duration=isNaN(duration)?300:duration;
	    var m = document.createElement('div');
	    m.innerHTML = msg;
	    m.style.cssText="width: 25%;min-width: 150px;opacity: 0.7;height: 30px;color: rgb(255, 255, 255);line-height: 30px;text-align: center;border-radius: 5px;position: fixed;top: 25%;left: 30%;z-index: 999999;background: rgb(0, 0, 0);font-size: 12px;";
	    document.body.appendChild(m);
	    setTimeout(function() {
	        var d = 0.5;
	        m.style.webkitTransition = '-webkit-transform ' + d + 's ease-in, opacity ' + d + 's ease-in';
	        m.style.opacity = '0';
	        setTimeout(function() { document.body.removeChild(m) }, d * 1000);
	    }, duration);
	}
	function copyData (data) { // 复制内容到粘贴板
		var oInput = document.createElement('input');
	    oInput.value = data;
	    // 避免IE浏览器弹出咨询框的时候文本框显示在页面上
	    oInput.style.setProperty('position', 'absolute', 'important');
	    oInput.style.setProperty('top', '-1000px', 'important');
	    document.body.appendChild(oInput);
	    oInput.select(); // 选择对象
	    document.execCommand("Copy"); // 执行浏览器复制命令
	    oInput.className = 'oInput';
	    oInput.style.display='none';
	    Toast('复制成功', 300);
	}
</script>

    <link rel="shortcut icon" href="http://58299e.com/jsp/member/images/favicon.ico" type="image/vnd.microsoft.icon">
    <script type="text/javascript" src="./js/jquery-1.8.2.js"></script>
		<script type="text/javascript" src="./js/jquery.pager.js"></script>
		<script type="text/javascript" src="./js/jquery-ui.js"></script>
    <script type="text/javascript" src="./js/data.cn.js"></script>
    <script type="text/javascript" src="./js/common.js"></script>
    <script type="text/javascript" src="./js/jquery.blockUI.min.js"></script>
    <script type="text/javascript" src="./js/WdatePicker.js"></script>
		<script type="text/javascript" src="./js/offlinePayment.js"></script>


		<link type="text/css" href="./css/jquery-ui-1.8.21.custom.css" rel="stylesheet">
		<link rel="stylesheet" href="./css/yhck.css" type="text/css">
		<link rel="stylesheet" href="./css/stan.css" type="text/css">
		<link rel="stylesheet" href="./css/bank.css" type="text/css">

	

	<link rel="stylesheet" type="text/css" href="./css/page.css">
	<link rel="stylesheet" type="text/css" href="./css/jquery-ui-1.9.1.custom.css">
    <link href="./css/WdatePicker.css" rel="stylesheet" type="text/css">

    
    <script type="text/javascript" src="./js/object.js"></script>


    <script type="text/javascript">
        var ctx = "";

        $(document).ready(function () {
            var d = new Date();
            var years = d.getFullYear();
            var month = add_zero(d.getMonth() + 1);
            var days = add_zero(d.getDate());
            var hours = add_zero(d.getHours());
            var minutes = add_zero(d.getMinutes());
            var seconds = add_zero(d.getSeconds());

            dispTime()
						add_orderTime(hours, minutes);
            var timerID = setInterval("dispTime()", 1000);
            var url = "";
        });

        function add_zero(temp) {
            if (temp < 10) return "0" + temp;
            else return temp;
        }
        
        function	add_orderTime(var_hour, var_min)
        {
        	
        	$("#Time_Hour_id").val(parseInt(var_hour));
					$("#Time_Minute_id").val(parseInt(var_min)); 
        }
        /**
         *    即時時間顯示
         **/
        function dispTime() {
            var d = new Date();
            var utc = d.getTime() + (d.getTimezoneOffset() * 60000);

            var F = new Date( utc + (3600000 * -4 ));

            var Y = F.getFullYear();

            var Mh = F.getMonth() + 1;
            if(Mh > 12) Mh = 01;
            if(Mh < 10) Mh = '0'+Mh;

            var D = F.getDate()  < 10 ? '0'+F.getDate():F.getDate();
            var H = F.getHours() < 10 ? '0'+F.getHours():F.getHours();
            var M = F.getMinutes() < 10 ? '0'+F.getMinutes():F.getMinutes();
            var S = F.getSeconds() < 10 ? '0'+F.getSeconds():F.getSeconds();
            $('#EST_reciprocal').html(Y+'/'+Mh+'/'+D+' - '+H+':'+M+':'+S);
        }
    </script>

</head>


<style type="text/css">
	body{
	text-align:left;
	margin-left:50px;
	margin-right:auto;
	}
	
	#DepositTabs {font-size: 12px;}
	.col_ffid {color: gray;}
	.ewmzf{
		position: absolute;
	    top: 3px;
	    left: 152px;
	}
	.ewmzf img {
		width:100px;
		height:30px;
	}
	.ewmImg{
		display:none;	
	}
	.step3_default{
		display: none;
	}
	.step3_ewm table,.step3_ewm table td{
		border-color: #c1c1c1;
	}
	.step3_ewm td{
		padding: 5px;
		text-align: center;
	}
	.accountList{
		border: 1px solid #c1c1c1;
		border-collapse:collapse;
		position: relative;
	}
	#deposit_tab2 table td{
		height: 17px;
		line-height: 17px;
	}
	#depositTable, #depositTable1 tr{line-height: 31px;}
	.left, .step3_ewm td.left{
		text-align: left;
	}
	.red{color: red;}
	.bold{font-weight: bold;font-size: 14px;}
	.tit{font-size: 18px;color: #5DC1C4;}
	.tit1{font-size: 12px;color: #C69B29;}
	.step3_ewm{
		display: none;
	}
	.account{
		width:100px; 
		word-wrap:break-word;
		word-break:break-all,
	}
	#kfinfo span{
		height:20px;
		line-height: 20px;
	}
	#kfinfo input{
		width: 100px;
	}
	.accountList{
		padding: 4px 10px;
	}
	.accountList table{
		width: 257px;
		height: 64px;
	}
	
	.clearfix:before, .clearfix:after {
		content:"";
		display:table;
	}
	.clearfix:after{
		clear:both;
		overflow:hidden;
	}
	.clearfix{
		zoom:1;
	}
	
	#subs {
		width: 500px;
		text-align: center;
		margin-top:8px;
	}
	#subs input{
		margin:  0 10px;
		padding: 6px 12px;
		border-radius: 5px;
	}

	[disabled="disabled"]{
		background-color: darkgray;
	}

	.accountList table{
		width: 100%;

	}
	#bank_content{
		margin-left: 17px;
	}
	select{
		max-height: 20px;line-height: 20px
	}
	.fastSelectMoney.moneySelected {
        background: #fcb773;
        color: white;
	}
	.fastSelectMoney {
	    text-align: center;
	    background: white;
	    border-radius: 4px;
	    padding: 4px 5px;
	    margin: 0 2px;
	    max-width: 24%;
	    border: 1px solid #bbb;
	    cursor: pointer;
	    width: 35px;
        line-height: 15px;
        height: 15px;
        display: inline-block;
	}
</style>


<!--
      style="overflow-y: hidden "
-->
<body id="bank_body" style="overflow-x:hidden; ">
<input type="hidden" id="isCheckTestMember" name="isCheckTestMember" value="1">
<div id="wrap" style="position: relative;">
    <div class="top">
        <div id="MALogo"></div>
        <div id="MATime">
            <div id="timepic"></div>
            <span class="time">美东时间：<span id="EST_reciprocal">2018/08/30 - 13:25:31</span></span>
        </div>
        <div id="MABank"> </div>
    </div>
    <!-- //* Body -->
    <div id="MAContent" class="main_mem clear_fix">
        <div class="account-bg">
            <div class="ulList">

                <div id="welcome"></div>

                <div class="ulList_bt"></div>
            </div>
        </div>
        <!--右边区域-->
        <div class="account-right">
            <div id="mamain">
                <div id="MACenter-content">





<style>
	.clearfix:after {content: ".";display: block;clear: both;visibility: hidden;line-height: 0;height: 0;}
	.clearfix {display: inline-block}
	.payico{
		position: relative;
		top: 5px;
		left: -2px;
	}
	#Dcard {
		font-size: 13px;
		position: absolute;
		right: 280px;
		top:218px;
	}
	a.pagelink {
		color: #004892;
		font-weight: bold;
		text-decoration: underline;
	}
	.span table td{
		line-height: 1.5em;
		color: #666;
		padding: 6px 8px;
	}
	.span table td img{
		max-width:705px
	}
	.span table {
		width: 100%;
		border-collapse: collapse;
		border-spacing: 0;
		text-align: left;
		font-size: 12px;
		color: #FFF;
	}
	.column, .columns{
		width:100%;
	}

	#DepositMethod {
		height: auto !important;
		min-height: 200px;
		width: 100%;
		margin-top: -30px;
	}
	#DepositMethod h1 {
		border-bottom: medium none;
		font-size: 26px;
		/* margin-top: 20px; */
		padding: 0;
		text-align: center;
	}
	#DepositMethod li img {
		border: 3px solid #e1e1e0;
		height: 59px;
		background: white;
		width: 132px;
	}
	#DepositMethod li.active img{
		border-color: #696866;
	}
	.selected-payment-logo {
		border-color: #696866 !important;
	}
	#DepositMethod li {
		display: inline;
		float: left;
		margin-bottom: 13px;
		margin-right: 10px;
	}
	#DepositMethod {
		height: auto !important;
		min-height: 200px;
		width: 100%;
	}
	#cashierdeposit-logo-container{
		margin-left: -22px;
	}
/*	#cashierdeposit-logo-container > ul{
		width: 770px;
		margin-left: -35px;
		margin-top: 8px;
	}*/
	/*
   存款页面
*/
	#accountInfo{
		margin-left: 14px;
	}
	#accountInfo .info-txt{
		font-weight:bold;
		margin-bottom: 4px;
	}
	#accountInfo p{
		height: 24px;
		line-height: 24px;
		display: block;
	}
	#accountInfo p.info{
		margin-left: 40px;
	}
	#depositContent{
		width: 766px;
		margin-left: -4px;
		min-height: 602px;
		position: relative;
		top: -36px;
	}
	#titleTab{
		height: 40px;
		margin-top: 15px;
		width: 768px;
		margin-left: -41px;
	}
	#titleTabC{
		margin: 0 auto;
		/* background: #C05045; */
		width: 130px;
		line-height: 36px;
		text-align: center;
		font-size: 23px;
		/* border: 2px solid black; */
		height: 36px;
	}
	.listh1{
		background: #FFFFFF;
		color: #f66f15;
		max-width: 162px;
		width: auto;
		cursor: pointer;
		height: 36px;
		line-height: 36px;
		font-size: 18px;
		border-radius: 22px;
		margin-top: 10px;
		padding: 0 6px 0 20px;
		box-shadow: 1px 3px 0 #ccc;
		min-width: 50px;
		text-align: left;
	}
	.listh1:hover{
		box-shadow: none;
	}
	#showlist{
		width: 728px;
		margin: 10px auto;
	}
	.showlist{
		width: 728px;
		margin: 10px auto;
	}
	#_content{
		width: 100%;
		min-height: 590px;
	}

</style>













<div id="mmaindata">
	<h2 class="msubtitle"></h2>
	<div class="l-balance-transfer">
		<div class="cashierWrapper" style="width: 705px;">
			<div class="row-fluid">
				<div class="span12">
					<div id="main-wrapper">
						<div id="main" class="clearfix">
							<div id="content" class="column">
								<div class="section">
									<div data-bind="template: currentPage">
										<div id="DepositMethod" class="container cashier-sub-container clearfix" style="display: block">
											<div class="row-fluid">
												
												<input id="auditingStatus" type="hidden" value="0">
													<div class="span12">
														
															
															
																<div id="titleTab" class="addbg"><div id="titleTabC">银行汇款</div></div>
																<div class=" span8 offset2">
																	<div id="cashierdeposit-logo-container">
																		<!-- by chopper 试玩功能，隐藏会员类型，用于判断试玩功能无法操作 -->
																		<input type="hidden" id="memberAccountType" name="memberAccountType" value="">
		
																		<ul class="methods clearfix" data-bind="foreach: payment_options">
																			<li id="onlinepay" class="">
																				<a id="onlinedebit-payment-option" class="cashier-address" data-bind="attr: { href: url_path, rel: address_link, id: url_key+'-payment-option'' }" href="javascript:onlineBank('<?php echo $user_id ?>');"> <img id="onlineImg" data-bind="attr: { src: logo , alt: title}" src="./Images/pay_online.png" alt="在线支付 (即时)">
																				</a>
																			</li>
		
																			<li id="bankRemitpay" class="active">
																				<a onmouseover="controlBelow('unline');" onmouseout="controlBelowout('unline');" id="atm-payment-option" class="cashier-address" data-bind="attr: { href: url_path, rel: address_link, id: url_key+'-payment-option' }" href="javascript:unlineBank('<?php echo $user_id ?>');"> <img id="unlineImg" class="" data-bind="attr: { src: logo , alt: title}" src="./Images/pay_company.png" alt="自动柜员机">
																				</a>
		
																			</li>
																			
																			<!--  微信 支付宝 线下支付 -->
																			<li id="wechatPayRemit">
																				<a id="offlinePay-wechat" class="cashier-address" href="javascript:offlinePay('wechat', '<?php echo $user_id ?>');">
																					<img src="./Images/pay_qrcode.png" alt="微信扫码支付 (即时)">
																				</a>
																			</li>
																			<li id="alipayPayRemit" style="display: block;">
																				<a id="offlinePay-zhifubao" class="cashier-address" href="javascript:offlinePay('zhifubao', '<?php echo $user_id ?>');">
																					<img src="./Images/alipay_qrcode.png" alt="支付宝扫码支付 (即时)">
																				</a>
																			</li>
																			<li id="qqpayPayRemit" style="display: none;">
																				<a id="offlinePay-qq" class="cashier-address" href="javascript:offlinePay('qq', '<?php echo $user_id ?>');">
																					<img src="./Images/qq_qrcode.png" alt="qq扫码支付 (即时)">
																				</a>
																			</li>
																			<li id="cftpayPayRemit" style="display: none;">
																				<a id="offlinePay-cft" class="cashier-address" href="javascript:offlinePay('cft', '<?php echo $user_id ?>');">
																					<img src="./Images/cft_qrcode.png" alt="财付通扫码支付 (即时)">
																				</a>
																			</li>
																			
																			<li id="ysfpayPayRemit" style="display: none;">
																				<a id="offlinePay-ysf" class="cashier-address" href="javascript:offlinePay('ysf', '<?php echo $user_id ?>');">
																					<img src="./Images/ysf_qrcode.png" alt="云闪付扫码支付 (即时)">
																				</a>
																			</li>
																		</ul>
																	</div>
																</div>
																<div class="cashier-payment-description span8 offset2" data-bind="with: currentPaymentOption" style="opacity: 1;margin-top:10px;">
		
																</div>
															
														
													</div>
												
												
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--
				在线支付 html 跳转页面
			-->
			

<div id="bank_content" style="width: 800px;margin: 0 auto;">
		<div id="DepositTabs" class="ui-tabs " style="">
			<div>
				
					
				
			</div>
			<div id="depositeAera">
				<form method="post" name="DepositForm">
					<div style=" font-weight:bold;">
						<img src="./Images/tick.png" id="tick" style="position: relative;top: 5px;">
						请选择银行
						<br><span style="margin-left: 6px;color:#e58383;">※※本公司账户将会定期更换，银行汇款时请按步骤进行汇款，以免款项汇入过期账号！</span></div>
					<div style="width:600px;margin-top: 7px;margin-left: 23px;" class="clearfix" id="accountP">
						
							
									
									<div class="accountList">
										<table>
											<tbody><tr><td rowspan="5" width="30" align="center">
												<input type="radio" style="vertical-align:middle;" value="8028" name="deposit_id" bank_id="1" onclick="setBank(2)"></td></tr>
											<tr>
												<td style="width: 146px;">银行名称：</td>
												<td><span id="bank_M_8028" class="bank bd">中国银行</span></td>
											</tr>
											<tr><td>收款名称：</td><td><span id="bank_R_8028" class="payee bd">网络科技有限公司</span>
											</td></tr>
										<tr><td>银行账户：</td><td width="65%"> 
											<span	 id="bank_B_8028" style="word-break:break-all;">88888888 </span>
										</td></tr>
											<tr>
												
												
													<td>开户网点：</td><td id="bank_W_8028" title="河南分行" class="depositbank bank bd" style="word-break:break-all;">河南分行</td>
												
											</tr>
										</tbody></table>
										<div class="clear"></div>
									</div>
									<div class="clear"></div>
								
							
						
					</div>
					<div class="fieldset">
						<div style="margin-left: 23px;line-height: 25px;color:red;">
							<a>温馨提醒：</a><br>
							※1、请勿存入整数金额(如存 1000.32元,500.77元),以便财务查收<br>
							※2、转账完成后请保留单据作为核对证明<br>
						</div>
					</div>

				</form>
				<div class="clear"></div>
			</div>

			<div style="font-weight:bold;">
				<img src="./Images/tick.png" style="position: relative;top: 5px;">
				请在转账后填写
			</div>

			<!-- =========================================== 步骤3 ================================================== -->
			<div id="deposit_tab3" class="ui-tabs-panel ui-widget-content ui-corner-bottom">

				<form id="deposit" action="do_paybank.php" method="post"  name="deposit">
					<input type="hidden" id="userid" name="userid" value="<?php echo $user_id ?> " >
					<input type="hidden" id="sel_bank_name" name="sel_bank_name" value="">
					<input type="hidden" id="sel_deposit_way" name="sel_deposit_way" value="">
					<table id="depositTable">
						<tbody>
							<tr>
								<td width="21%" height="22px" class="text-right"><span style="color: red">*</span>入款订单号:</td>
								<td><input id="order_num" type="text" readonly="readonly" name="order_num">
								</td>
							</tr>
							<tr>
								<td width="21%" height="22px" class="text-right" id="bankIncomeName"><span style="color: red">*</span>汇款姓名:</td>
								<td>
									<input id="deposit_name" type="text" name="deposit_name" maxlength="20">
								</td>
							</tr>
							<tr>
								<td width="21%" height="25px" class="text-right"><span style="color: red">*</span>充值金额:</td>
								<td>
									<input id="deposit_amount" type="text" name="deposit_amount" onkeyup="clearNoNum(this)" placeholder="1-1000000">
									<span class="star" id="amtid" style="padding-left:0px;">
									</span>
								</td>
							</tr>
							<tr id="moneyDetails" style="display:none">
                                    <td width="21%" height="25px" class="text-right">
                                    </td>
                                    <td></td>
                                </tr>
							<tr>
								<td width="21%" height="22px" class="text-right"><span style="color: red">*</span>入款时间:</td>
								<td>
									<input id="datepicker" class="hasDatepicker" type="text" name="deposit_date" readonly="readonly"> 
										<img class="ui-datepicker-trigger" src="./Images/calendar.gif"> 
										
										 
										<select name="Time_Hour" id="Time_Hour_id" style="height: 20px">
												<option value="0" label="00" selected="selected">00</option>
												<option value="1" label="01">01</option>
												<option value="2" label="02">02</option>
												<option value="3" label="03">03</option>
												<option value="4" label="04">04</option>
												<option value="5" label="05">05</option>
												<option value="6" label="06">06</option>
												<option value="7" label="07">07</option>
												<option value="8" label="08">08</option>
												<option value="9" label="09">09</option>
												<option value="10" label="10">10</option>
												<option value="11" label="11">11</option>
												<option value="12" label="12">12</option>
												<option value="13" label="13">13</option>
												<option value="14" label="14">14</option>
												<option value="15" label="15">15</option>
												<option value="16" label="16">16</option>
												<option value="17" label="17">17</option>
												<option value="18" label="18">18</option>
												<option value="19" label="19">19</option>
												<option value="20" label="20">20</option>
												<option value="21" label="21">21</option>
												<option value="22" label="22">22</option>
												<option value="23" label="23">23</option>
										</select> 
										<select name="Time_Minute" id="Time_Minute_id" style="height: 20px">
												<option value="0" label="00" selected="selected">00</option>
												<option value="1" label="01">01</option>
												<option value="2" label="02">02</option>
												<option value="3" label="03">03</option>
												<option value="4" label="04">04</option>
												<option value="5" label="05">05</option>
												<option value="6" label="06">06</option>
												<option value="7" label="07">07</option>
												<option value="8" label="08">08</option>
												<option value="9" label="09">09</option>
												<option value="10" label="10">10</option>
												<option value="11" label="11">11</option>
												<option value="12" label="12">12</option>
												<option value="13" label="13">13</option>
												<option value="14" label="14">14</option>
												<option value="15" label="15">15</option>
												<option value="16" label="16">16</option>
												<option value="17" label="17">17</option>
												<option value="18" label="18">18</option>
												<option value="19" label="19">19</option>
												<option value="20" label="20">20</option>
												<option value="21" label="21">21</option>
												<option value="22" label="22">22</option>
												<option value="23" label="23">23</option>
												<option value="24" label="24">24</option>
												<option value="25" label="25">25</option>
												<option value="26" label="26">26</option>
												<option value="27" label="27">27</option>
												<option value="28" label="28">28</option>
												<option value="29" label="29">29</option>
												<option value="30" label="30">30</option>
												<option value="31" label="31">31</option>
												<option value="32" label="32">32</option>
												<option value="33" label="33">33</option>
												<option value="34" label="34">34</option>
												<option value="35" label="35">35</option>
												<option value="36" label="36">36</option>
												<option value="37" label="37">37</option>
												<option value="38" label="38">38</option>
												<option value="39" label="39">39</option>
												<option value="40" label="40">40</option>
												<option value="41" label="41">41</option>
												<option value="42" label="42">42</option>
												<option value="43" label="43">43</option>
												<option value="44" label="44">44</option>
												<option value="45" label="45">45</option>
												<option value="46" label="46">46</option>
												<option value="47" label="47">47</option>
												<option value="48" label="48">48</option>
												<option value="49" label="49">49</option>
												<option value="50" label="50">50</option>
												<option value="51" label="51">51</option>
												<option value="52" label="52">52</option>
												<option value="53" label="53">53</option>
												<option value="54" label="54">54</option>
												<option value="55" label="55">55</option>
												<option value="56" label="56">56</option>
												<option value="57" label="57">57</option>
												<option value="58" label="58">58</option>
												<option value="59" label="59">59</option>
										</select> (当地时间) 
								</td>
							</tr>

							<tr>
								<td width="21%" height="22px" class="text-right"><span style="color: red">*</span>入款银行:</td>
								<td>
									
									<select id="deposit_bank" name="deposit_bank" onchange="updateOption()">
										
											<option value="0">未选择</option>

											<option value="31">HKB银行</option>
										
											<option value="216">安徽省农村信用社联合社</option>
										
											<option value="123">包商银行</option>
										
											<option value="131">保定银行</option>
										
											<option value="36">北京农商银行</option>
										
											<option value="2">北京银行</option>
										
											<option value="19">渤海银行</option>
										
											<option value="190">沧州银行</option>
										
											<option value="154">长安银行</option>
										
											<option value="256">长城华西银行</option>
										
											<option value="183">长沙银行</option>
										
											<option value="144">长治银行</option>
										
											<option value="172">朝阳银行</option>
										
											<option value="185">成都银行</option>
										
											<option value="136">承德银行</option>
										
											<option value="196">稠州银行</option>
										
											<option value="212">大连银行</option>
										
											<option value="143">大同市商业银行</option>
										
											<option value="25">东亚银行</option>
										
											<option value="20">东莞银行</option>
										
											<option value="149">鄂尔多斯银行</option>
										
											<option value="198">福建海峡银行</option>
										
											<option value="58">福建农村信用社</option>
										
											<option value="218">福建省农信联社</option>
										
											<option value="151">富滇银行</option>
										
											<option value="253">甘肃农村信用社</option>
										
											<option value="170">甘肃银行</option>
										
											<option value="105">工商银行信用卡</option>
										
											<option value="113">光大银行信用卡</option>
										
											<option value="250">广东华兴银行</option>
										
											<option value="133">广东省农村信用社</option>
										
											<option value="12">广发银行</option>
										
											<option value="115">广发银行信用卡</option>
										
											<option value="242">广西北部湾银行</option>
										
											<option value="224">广西壮族自治区农村信用联社</option>
										
											<option value="249">广元市贵商村镇银行</option>
										
											<option value="29">广州农商银行</option>
										
											<option value="21">广州银行</option>
										
											<option value="125">桂林银行</option>
										
											<option value="175">贵阳银行</option>
										
											<option value="176">贵州农村信用社</option>
										
											<option value="150">贵州银行</option>
										
											<option value="130">哈尔滨银行</option>
										
											<option value="163">哈密市商业银行</option>
										
											<option value="141">邯郸银行</option>
										
											<option value="22">杭州银行</option>
										
											<option value="228">河北省农村信用社联合社</option>
										
											<option value="127">河南农村信用社</option>
										
											<option value="236">黑龙江省农村信用社联合社</option>
										
											<option value="142">衡水银行</option>
										
											<option value="244">恒丰银行</option>
										
											<option value="246">葫芦岛银行</option>
										
											<option value="177">湖北农商银行</option>
										
											<option value="222">湖北省农村信用社</option>
										
											<option value="129">湖南省农村信用社联合社</option>
										
											<option value="13">华夏银行</option>
										
											<option value="119">徽商银行</option>
										
											<option value="57">吉林银行</option>
										
											<option value="107">建设银行信用卡</option>
										
											<option value="252">江南农村商业银行</option>
										
											<option value="192">江苏银行</option>
										
											<option value="120">江西农村信用社</option>
										
											<option value="180">江西银行</option>
										
											<option value="3">交通银行</option>
										
											<option value="108">交通银行信用卡</option>
										
											<option value="178">锦州银行</option>
										
											<option value="145">晋城银行</option>
										
											<option value="27">晋商银行</option>
										
											<option value="146">晋中银行</option>
										
											<option value="200">九江银行</option>
										
											<option value="162">库尔勒市商业银行</option>
										
											<option value="160">昆仑银行</option>
										
											<option value="247">昆山农商银行</option>
										
											<option value="258">莱商银行</option>
										
											<option value="155">兰州银行</option>
										
											<option value="171">兰州银行</option>
										
											<option value="140">廊坊银行</option>
										
											<option value="234">辽宁省农村信用社联合社</option>
										
											<option value="245">辽阳银行</option>
										
											<option value="181">柳州银行</option>
										
											<option value="179">龙江银行</option>
										
											<option value="206">洛阳银行</option>
										
											<option value="248">绵阳市商业银行</option>
										
											<option value="118">民生银行信用卡</option>
										
											<option value="202">南昌银行</option>
										
											<option value="28">南京银行</option>
										
											<option value="132">内蒙古银行</option>
										
											<option value="232">内蒙古自治区农村信用社联合社</option>
										
											<option value="164">宁波东海银行</option>
										
											<option value="165">宁波通商银行</option>
										
											<option value="24">宁波银行</option>
										
											<option value="117">宁波银行信用卡</option>
										
											<option value="157">宁夏银行</option>
										
											<option value="109">农业银行信用卡</option>
										
											<option value="241">攀枝花市商业银行</option>
										
											<option value="18">平安银行</option>
										
											<option value="114">平安银行信用卡</option>
										
											<option value="17">浦发银行</option>
										
											<option value="112">浦发银行信用卡</option>
										
											<option value="138">秦皇岛银行</option>
										
											<option value="168">青岛银行</option>
										
											<option value="156">青海银行</option>
										
											<option value="152">曲靖市商业银行</option>
										
											<option value="122">泉州银行</option>
										
											<option value="187">日照银行</option>
										
											<option value="214">山东省农村信用社</option>
										
											<option value="220">山东省农村信用社联合社</option>
										
											<option value="230">山西省农村信用社</option>
										
											<option value="30">上海农商银行</option>
										
											<option value="4">上海银行</option>
										
											<option value="116">上海银行信用卡</option>
										
											<option value="16">深圳发展银行</option>
										
											<option value="259">深圳农村商业银行</option>
										
											<option value="40">深圳农商银行</option>
										
											<option value="173">盛京银行</option>
										
											<option value="158">石嘴山银行</option>
										
											<option value="33">顺德农商银行</option>
										
											<option value="226">四川省农村信用联社</option>
										
											<option value="254">四川天府银行</option>
										
											<option value="194">苏州银行</option>
										
											<option value="251">台州银行</option>
										
											<option value="135">唐山银行</option>
										
											<option value="121">天津农商银行</option>
										
											<option value="134">天津银行</option>
										
											<option value="260">铁岭银行</option>
										
											<option value="257">威海商业银行</option>
										
											<option value="26">温州银行</option>
										
											<option value="148">乌海银行</option>
										
											<option value="159">乌鲁木齐市商业银行</option>
										
											<option value="124">西安银行</option>
										
											<option value="167">厦门国际银行</option>
										
											<option value="166">厦门银行</option>
										
											<option value="161">新疆汇和银行</option>
										
											<option value="8">兴业银行</option>
										
											<option value="111">兴业银行信用卡</option>
										
											<option value="139">邢台银行</option>
										
											<option value="204">烟台银行</option>
										
											<option value="147">阳泉市商业银行</option>
										
											<option value="34">尧都农村信用合作联社</option>
										
											<option value="169">营口银行</option>
										
											<option value="153">玉溪市银行</option>
										
											<option value="182">云南省农村信用社</option>
										
											<option value="137">张家口银行</option>
										
											<option value="10">招商银行</option>
										
											<option value="106">招商银行信用卡</option>
										
											<option value="35">浙江稠州商业银行</option>
										
											<option value="243">浙江民泰商业银行</option>
										
											<option value="238">浙江省农村信用社联合社</option>
										
											<option value="23">浙商银行</option>
										
											<option value="208">郑州银行</option>
										
											<option value="14">中国工商银行</option>
										
											<option value="7">中国光大银行</option>
										
											<option value="6">中国建设银行</option>
										
											<option value="9">中国民生银行</option>
										
											<option value="37">中国农村信用合作社</option>
										
											<option value="1">中国农业银行</option>
										
											<option value="5">中国银行</option>
										
											<option value="110">中国银行信用卡</option>
										
											<option value="15">中国邮政储蓄银行</option>
										
											<option value="126">中旅银行</option>
										
											<option value="11">中信银行</option>
										
											<option value="174">中原银行</option>
										
											<option value="56">重庆农村商业银行</option>
										
											<option value="210">重庆银行</option>
										
											<option value="32">珠海市农村信用</option>
										
									</select>
								</td>
							</tr>
							<tr>
								<td width="21%" height="22px" class="text-right"><span style="color: red">*</span>入款方式:</td>
								<td>

									<select id="deposit_way" name="deposit_way" onchange="updateOption()">
										<option value="0" selected="selected">网银转账</option>
										<option value="1">ATM自动柜员机</option>
										<option value="2">ATM现金入款</option>
										<option value="3">银行柜台</option>
										<option value="4">手机银行转账</option>
										<option value="9">微信转账</option>
										<option value="10">支付宝转账</option>
										<option value="12">QQ转账</option>
										<option value="14">财付通转账</option>
										<option value="15">云闪付转账</option>
										<option value="7"> 其他</option>

									</select>

								</td>
							</tr>
							<tr id="atm_location_row" style="height: 40px; line-height: 20px; display: none;">
								<td width="21%" class="text-right"><span style="color: red">*</span>所属分行</td>
								<td style="float:left;">
									<input type="text" id="bankAddress" name="bankAddress" style="margin-top: 10px;" maxlength="100">
									<span style="float: right;">
										&nbsp;若您使用ATM存款，请填写所属分行<br> 
										&nbsp;例：“广东省 佛山市 豪苑支行
									</span>
								</td>  	
							</tr>
							<tr style="height: 40px;line-height: 20px;">
								<td width="21%" height="22px" class="text-right">备注:</td>
								<td style="float:left;">
									<input id="deposit_remark" type="text" name="deposit_remark" style="margin-top: 10px;" maxlength="100">
								</td>
							</tr>
						</tbody>
					</table>
					<div id="subs">
						<input id="subMoney" type="button" value="提交" onclick="postBankRemit()">
						<input id="cancelit" type="button" value="重置">
					</div>
					<div style="margin-left: 4px;margin-top: 6px;">
						<p>温馨提醒：</p>
						<p style="color: red">※1、请准确填写转账金额与时间。</p>
						<p style="color: red">※2、每笔转账请提交一次，不要重复提交。</p>
						<p style="color: red">※3、若您使用ATM存款，请填写ATM所属分行，会加快您的到账时间。</p>
					</div>

				</form>
			</div>
			
			<!-- =========================================== 步骤4 ================================================== -->
			
			<div id="deposit_tab4" class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" style="background-color: #FFFFE7;height:393px;">
				<div>
					<span class="pay_under"> <font color="2b78e4">■</font>
						您的存款申请已成功提交!以下是您的存款资料，请妥善保存。 </span> <br> <br>
							<ul>
								<li><b>银行名称:</b> <span id="d_deposit_bank"></span></li>
								<li><b>存入金额:</b> <span id="d_amount"></span></li>
								<li><b>存入时间:</b> <span id="d_datetime"></span></li>
								<li><b>您使用的银行:</b> <span id="d_bank"></span></li>
								<li><b>入款人姓名:</b> <span id="d_payee"></span></li>
								<li><b>存款方式:</b> <span id="d_way"></span></li>
								<li id="d_atm_location_row"><b class="bank_name1">ATM所属分行:</b> <span id="d_atm_location"></span>
								</li>
								<li><b>订单号:</b> <span id="d_order_num"></span></li>
							</ul> <br>
								<ul>
									<li>※1、<b>同行转账:</b> 完成转账后请于30分钟内查收您的会员账号余额，如未更新请联系在线客服。</li>
									<li>※2、<b>跨行转账:</b> 银行不承诺跨行汇款到账时间， 如您的款项在24小时内未更新，烦请您联系在线客服为您提供帮助。</li>
								</ul> <br>

				</div>
			</div>
		</div>

	</div>


	
<?php  

	$order_no =time().rand(100,1000);
	$order_time =date("Y-m-d H:i:s",time());
	$order_date =date("Y-m-d",time());
	
	//包含数据库连接文件  
	include('conn.php');  
	
	//执行数据库脚本1
	$sql_paySwitch="SELECT [Field1]
	      ,[Field2]
	      ,[Field3]
	      ,[Field4]
	      ,[Field5]
	      ,[Field6]
	      ,[Field7]
	      ,[Field8]
	  FROM [QPPlatformDB].[dbo].[PublicConfig]
	  where configkey='PaySwitch'";
	$user_query = sqlsrv_query($conn, $sql_paySwitch);
	  
	if(empty($user_query))
	{
		exit(' 遇到数据库错误！请点击此处 <a href="javascript:history.back(-1);">返回</a> 重试');  
	}
	
	$paySwitch= array();
	
	$row = sqlsrv_fetch_array($user_query, SQLSRV_FETCH_ASSOC);  
	if(!empty($row))
	{
		$paySwitch[0] = $row['Field1'];
		$paySwitch[1] = $row['Field2'];
		$paySwitch[2] = $row['Field3'];
		$paySwitch[3] = $row['Field4'];
		$paySwitch[4] = $row['Field5'];
		$paySwitch[5] = $row['Field6'];
		$paySwitch[6] = $row['Field7'];
		$paySwitch[7] = $row['Field8'];
	}
	
	//横排的支付方式
	if($paySwitch[0] == "1")
		echo "<script type='text/javascript'> document.getElementById('onlinepay').style.display='block'; </script>";
	else
		echo "<script type='text/javascript'> document.getElementById('onlinepay').style.display='none'; </script>";
	
	if($paySwitch[1] == "1")
		echo "<script type='text/javascript'> document.getElementById('bankRemitpay').style.display='block'; </script>";
	else
	{
		echo "<script type='text/javascript'> document.getElementById('bankRemitpay').style.display='none'; </script>";
		echo "<script type='text/javascript'> document.getElementById('depositContent').style.display='none'; </script>";
		
	}
	
	if($paySwitch[2] == "1")
		echo "<script type='text/javascript'> document.getElementById('wechatPayRemit').style.display='block'; </script>";
	else
		echo "<script type='text/javascript'> document.getElementById('wechatPayRemit').style.display='none'; </script>";
	
	
	if($paySwitch[3] == "1")
		echo "<script type='text/javascript'> document.getElementById('alipayPayRemit').style.display='block'; </script>";
	else
		echo "<script type='text/javascript'> document.getElementById('alipayPayRemit').style.display='none'; </script>";
	
	
	if($paySwitch[4] == "1")
		echo "<script type='text/javascript'> document.getElementById('qqpayPayRemit').style.display='block'; </script>";
	else
		echo "<script type='text/javascript'> document.getElementById('qqpayPayRemit').style.display='none'; </script>";
	
	
	if($paySwitch[5] == "1")
		echo "<script type='text/javascript'> document.getElementById('cftpayPayRemit').style.display='block'; </script>";
	else
		echo "<script type='text/javascript'> document.getElementById('cftpayPayRemit').style.display='none'; </script>";
	
	
	if($paySwitch[6] == "1")
		echo "<script type='text/javascript'> document.getElementById('ysfpayPayRemit').style.display='block'; </script>";
	else
		echo "<script type='text/javascript'> document.getElementById('ysfpayPayRemit').style.display='none'; </script>";
	
	
	//if($paySwitch[7] == "1")
	//	echo "<script type='text/javascript'> document.getElementById('ysfpayPayRemit').style.display='block'; </script>";
	//else
	//	echo "<script type='text/javascript'> document.getElementById('ysfpayPayRemit').style.display='none'; </script>";
	
	//var_dump($paySwitch);
	

//执行数据库脚本2
	$sql_payinfo =  "SELECT TOP 1 [t_type], [t_yinhang]
      ,[t_kaihuren]
      ,[t_zhanghao]
      ,[t_web]
      ,[t_kaihuren1]
      ,[t_zhanghao1]
      ,[t_web1]
	  FROM [LuckMeDB].[dbo].[t_chongzhi]
  	where comments='BankDirect'";
//	echo $sql_payinfo;
	$user_query2 = sqlsrv_query($conn, $sql_payinfo);
    
	if(empty($user_query2))
	{
		exit(' 遇到数据库错误！请点击此处 <a href="javascript:history.back(-1);">返回</a> 重试');  
	}
	
	$payBankInfo= array();

	$row2 = sqlsrv_fetch_array($user_query2, SQLSRV_FETCH_ASSOC);  
	if(!empty($row2))
	{
		$payBankInfo[0] = $row2['t_yinhang'];
		$payBankInfo[1] = $row2['t_kaihuren'];
		$payBankInfo[2] = $row2['t_zhanghao'];
		$payBankInfo[3] = $row2['t_web'];		
	}
	else
		echo '获取数据库充值参数出错！';


//	var_dump($payBankInfo);
	$bankname = iconv('GBK','UTF-8', $payBankInfo[0]);
	$AccountName = iconv('GBK','UTF-8', $payBankInfo[1]);
	$AccountNumber= iconv('GBK','UTF-8', $payBankInfo[2]);
	$UserName = iconv('GBK','UTF-8', $payBankInfo[3]);

	//echo $bankname;
?>


<script type="text/javascript">

	//收款信息
	document.getElementById("bank_M_8028").innerHTML = '<?php echo $bankname ?>';
	document.getElementById("bank_R_8028").innerHTML = '<?php echo $AccountName ?>'+ '<span style=\"color:#F68622;cursor:pointer;position:absolute;right:130px;\" onclick=\"copyData(\'<?php echo $AccountName ?>\')\">复制</span>';
	document.getElementById("bank_B_8028").innerHTML = '<?php echo $AccountNumber ?>' + '<span style=\"color:#F68622;cursor:pointer;position:absolute;right:130px;\" onclick=\"copyData(\'<?php echo $AccountNumber ?>\')\">复制</span>';
	document.getElementById("bank_W_8028").innerHTML = '<?php echo $UserName ?>';
	
	//自动生成订单号
	document.getElementById("order_num").value  =  '<?php echo $order_no	?>';
	document.getElementById("datepicker").value = '<?php echo $order_date ?>';

	//自动生成的时刻
	
	//鼠标消息
	function	controlBelow(obj)
	{
	
	}
	function	controlBelowout(obj)
	{
	
	}
	
    //遮罩背景色
    QSFUN.SetOptions('maskColor', '#333');
    QSFUN.SetOptions('blockId', '#wrap');
    var param;
    if ('0' != "0") {

        param = $.parseJSON('0');
    }
//    QSFUN.MChgPager({method: "bankSavings"}, param);

    $(".mmain tbody tr").live({
        mouseenter: function () {
            $("td", this).addClass("mouseenter");
        },
        mouseleave: function () {
            $("td", this).removeClass("mouseenter");
        }
    });
    $(".ulList a").click(function () {

        if ($(this).parent().attr('id') == 'sidebar-mem' || $(this).parent().attr('id') == 'sidebar-msg') {
            return false;
        }
        if (!$(this).hasClass('current')) {
            $(".ulList a").removeClass('current');
            $(this).addClass('current');
        }

    });
    function mover(o) {
        o.style.backgroundPosition = '0 bottom';
    }

    function mout(o) {
        o.style.backgroundPosition = '0 top';
    }

    function cancelMouse() {
        return false;
    }
    document.oncontextmenu = cancelMouse;
    
    function updateOption()
    {
    			document.getElementById("sel_bank_name").innerHTML = document.getElementById("deposit_bank").options[document.getElementById("deposit_bank").selectedIndex].text;
    			document.getElementById("sel_deposit_way").innerHTML = document.getElementById("deposit_way").options[document.getElementById("deposit_way").selectedIndex].text;    
    }
    //提交银行存款数据的
    function postBankRemit() {
    		var u_id = document.deposit.userid;
    		if(u_id.value=="" || u_id.value.length < 2)
    		{
    			window.location.reload();
    			alert('未获取userid,请重新登录！');
    			return false;
    		}
    		var u_name=document.deposit.deposit_name;
    		if(u_name.value == null || u_name.value.length < 2 )
    		{
    			alert('姓名不可为空');
    			return false;
    		}
    		if(u_name.value.indexOf(" ") >= 0)
    		{
    			alert('姓名当中不可以有空格');
    			return false;
    		}
    		
    		var u_amount = document.deposit.deposit_amount;
    		if(u_amount.value.length < 2 )
    		{
    			alert('金额不可为空');
    			return false;
    		}
            $.ajax({
                type: "POST",							//方法
                url: "do_paybank.php" ,		//表单接收url
                data: $('#deposit').serialize(),
                success: function (msg) {
                  //提交成功的提示词或者其他反馈代码
                  document.getElementById("d_deposit_bank").innerHTML =document.getElementById("deposit_bank").options[document.getElementById("deposit_bank").selectedIndex].text;
                  document.getElementById("deposit_tab4").style.display='block';
                    //Toast('提交申请成功,财务将在1-3分钟内为您添加额度，请稍候！' + msg, 3000) ;
									alert('提交申请成功,财务将在1-3分钟内为您添加额度，请稍候！') ;
                },
                error : function(msg) {
                  //提交失败的提示词或者其他反馈代码
                    Toast('提交失败，请稍候再试。', 1300);
                }
            });
        }
</script>


</body></html>